﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Approval.aspx.cs" Inherits="ServerPayRequest.Approval" %>

<%@ Register Src="../../Processes/ProcessControl/UserInfo_TY.ascx" TagName="UserInfo"
    TagPrefix="ui" %>
<%@ Register Src="../../Processes/ProcessControl/ApprovalHistory_TY.ascx" TagName="ApprovalHistory"
    TagPrefix="ah" %>
<%@ Register Src="../../Processes/ProcessControl/Attachments_TY.ascx" TagName="Attachments"
    TagPrefix="attach" %>
<%@ Register Src="../../Processes/ProcessControl/ButtonList_TY.ascx" TagName="ButtonList"
    TagPrefix="btn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>服务外包资金支付及发票报销申请</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" language="javascript"> 
        $(document).ready(function () {
            var formtype = $("#fld_FORMTYPE").text();
            if (formtype == '资金支付类') {
                $("#DivMoney").css("display", "");   
                $("#DivContract").css("display", "none");
            }
            if (formtype == '发票报销类') {
                $("#DivMoney").css("display", "none");
                $("#DivContract").css("display", "");
            }
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="row">
            <ui:userinfo id="UserInfo1" processtitle="服务外包资金支付及发票报销申请" runat="server" TableName="PROC_SERVERPAYREQUEST" TableNameDetail="PROC_SERVERPAYREQUEST_DETAIL" ReadOnly="true"></ui:userinfo>
        </div>
        <div class="row">
            <table class="table table-condensed table-bordered">
                <thead class="table table-condensed table-bordered">
                    <tr>
                        <td class="td-label">
                            表单类别
                        </td>
                        <td class="td-content" colspan="3">
                           <asp:Label ID="fld_FORMTYPE" runat="server"></asp:Label>
                        </td>
                    </tr>
                </thead>
                <tbody id="DivMoney" class="table table-condensed table-bordered">
                    <tr>
                        <td class="banner" colspan="4">
                            资金报销
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            是否在预算内：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_ISINBUDGET" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                    <td class="td-label">
                        开户行：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_KHH" runat="server"></asp:Label>
                    </td>
                    <td class="td-label">
                        银行卡号：
                    </td>
                    <td class="td-content">
                        <asp:Label ID="fld_YHKH" runat="server"></asp:Label>
                    </td>
                </tr>
                    <tr>
                        <td colspan="11">
                            <table class="table table-condensed table-bordered" id="tbDetail">
                                <tr>
                                    <th>
                                        合同编号
                                    </th>
                                    <th>
                                        供应商名称
                                    </th>
                                    <th>
                                        内容
                                    </th>
                                    <th>
                                        合同金额
                                    </th>
                                    <th>
                                        供货数量
                                    </th>
                                    <th>
                                        合同数量
                                    </th>
                                    <th>
                                        已付金额
                                    </th>
                                    <th>
                                        本次所需要金额
                                    </th>
                                    <th>
                                        预计付款时间
                                    </th>
                                </tr>
                                <asp:Repeater ID="fld_detail_PROC_SERVERPAYREQUEST_DETAIL" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="fld_FORMID" Text='<%#Eval("FORMID") %>' runat="server"  style="display:none" ></asp:Label>
                                                    <asp:Label ID="fld_CONTRACTNUM" Text='<%#Eval("CONTRACTNUM") %>' runat="server" Width="90%"  ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_SUPPLIERNAME" Text='<%#Eval("SUPPLIERNAME") %>' runat="server" Width="90%" ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_CONTENT" Text='<%#Eval("CONTENT") %>' runat="server" Width="90%"
                                                        ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_CONTRACTAMOUNT" Text='<%#Eval("CONTRACTAMOUNT") %>' runat="server" Width="90%"
                                                     ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_SUPPLIERNUM" Text='<%#Eval("SUPPLIERNUM") %>' runat="server" Width="90%" ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_CONTRACTCOUNT" Text='<%#Eval("CONTRACTCOUNT") %>' runat="server" Width="90%" ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_HASPAYAMOUNT" Text='<%#Eval("HASPAYAMOUNT") %>' runat="server" Width="90%" ></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="fld_THEAMOUNT" Text='<%#Eval("THEAMOUNT") %>' runat="server" Width="90%" ></asp:Label>
                                                </td>
                                                 <td>
                                                    <asp:Label ID="fld_PAYMENTTIME" Text='<%#Eval("PAYMENTTIME") %>' runat="server" Width="90%" ></asp:Label>
                                                </td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            付款金额：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_PAYAMOUNT" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            付款金额大写：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_PAYACMOUNTUPPER" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            付款信息：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_PAYMENTINFO" runat="server" Width="97%" Height="40px"></asp:Label>
                        </td>
                    </tr>
                </tbody>
                <tbody id="DivContract" style="display: none;" class="table table-condensed table-bordered">
                    <tr>
                        <td class="banner" colspan="4">
                            合同发票
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票所属公司：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_CONTRACTACOMPAY" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            发票号：
                        </td>
                        <td class="td-content">
                        <asp:Label ID="fld_CONTRACTNUM" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票金额：
                        </td>
                        <td class="td-content">
                        <asp:Label ID="fld_CONTRACTAMOUNT" runat="server"></asp:Label>
                        </td>
                        <td class="td-label">
                            发票金额大写：
                        </td>
                        <td class="td-content">
                            <asp:Label ID="fld_CONTRACTAMOUNTUPPER" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="td-label">
                            发票信息：
                        </td>
                        <td class="td-content" colspan="3">
                            <asp:Label ID="fld_CONTRACTINFO" Width="97%" Height="40px" runat="server"></asp:Label>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="row">
            <attach:attachments id="Attachments1" readonly="true" runat="server"></attach:attachments>
        </div>
        <div class="row">
            <ah:approvalhistory id="ApprovalHistory1" runat="server"></ah:approvalhistory>
        </div>
        <div class="row">
        </div>
    </div>
    <btn:buttonlist id="ButtonList1" runat="server"></btn:buttonlist>
    <div style="display: none;">
    </div>
    </form>
</body>
</html>
